package com.lifeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author lifeng
 * @since 2025-1-14
 */
@Getter
@Setter
@TableName("tb_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String username;   //用户名

    private String password;   //密码

    private String phone;      //手机号

    private String email;      //邮箱

    private LocalDateTime created;   //创建时间

    private LocalDateTime updated;   //更新时间

    private String sourceType;    //会员来源：1:PC，2：H5，3：Android，4：IOS，5：WeChat

    private String nickName;    //网名

    private String name;       //真名

    private String status;      //用户状态：Y or N

    private String headPic;     //头像链接

    private String qq;          //QQ号

    private Long accountBalance;   //余额

    private String isMobileCheck;    //手机是否验证

    private String isEmailCheck;    //邮箱是否验证

    private String sex;              //性别

    private Integer userLevel;       //会员级别

    private Integer points;         //积分

    private Integer experienceValue;  //经验

    private LocalDateTime birthday;   //用户生日

    private LocalDateTime lastLoginTime;   //上次登录时间
}
